package com.miniblog.article.api.client;

import com.miniblog.article.api.client.impl.ArticleClientFallBack;
import com.miniblog.common.utils.Msg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 类名：ArticleClient.java
 * 路径：com.miniblog.article.api.client.ArticleClient.java
 * 创建人：tanyp
 * 创建时间：2019/12/31 10:51
 * 功能：博文信息api
 */
@FeignClient(name = "article", contextId = "articleapi", fallback = ArticleClientFallBack.class)
public interface ArticleClient {

    @GetMapping("articleList")
    Msg articleList(@RequestParam(required = false, defaultValue = "1") Integer pageNum,
                    @RequestParam(required = false, defaultValue = "10") Integer pageSize,
                    @RequestParam(required = false, defaultValue = "") String search);

}
